# RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -disassemble -show-encoding < %s | FileCheck -strict-whitespace %s

# CHECK: v_pk_mad_i16 v5, v1, v2, v3             ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_i16 v255, v1, v2, v3           ; encoding: [0xff,0x40,0x80,0xd3,0x01,0x05,0x0e,0x1c]
0xff,0x40,0x80,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, v255, v2, v3           ; encoding: [0x05,0x40,0x80,0xd3,0xff,0x05,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0xff,0x05,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, s1, v2, v3             ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x01,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, s101, v2, v3           ; encoding: [0x05,0x40,0x80,0xd3,0x65,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x65,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, flat_scratch_lo, v2, v3 ; encoding: [0x05,0x40,0x80,0xd3,0x66,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x66,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, flat_scratch_hi, v2, v3 ; encoding: [0x05,0x40,0x80,0xd3,0x67,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x67,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, vcc_lo, v2, v3         ; encoding: [0x05,0x40,0x80,0xd3,0x6a,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x6a,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, vcc_hi, v2, v3         ; encoding: [0x05,0x40,0x80,0xd3,0x6b,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x6b,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, m0, v2, v3             ; encoding: [0x05,0x40,0x80,0xd3,0x7c,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x7c,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, exec_lo, v2, v3        ; encoding: [0x05,0x40,0x80,0xd3,0x7e,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x7e,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, exec_hi, v2, v3        ; encoding: [0x05,0x40,0x80,0xd3,0x7f,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x7f,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, 0, v2, v3              ; encoding: [0x05,0x40,0x80,0xd3,0x80,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0x80,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, -1, v2, v3             ; encoding: [0x05,0x40,0x80,0xd3,0xc1,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0xc1,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, 0x3800, v2, v3         ; encoding: [0x05,0x40,0x80,0xd3,0xff,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0xf0,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, 0xc400, v2, v3         ; encoding: [0x05,0x40,0x80,0xd3,0xff,0x04,0x0e,0x1c]
0x05,0x40,0x80,0xd3,0xf7,0x04,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, v1, v255, v3           ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xff,0x0f,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xff,0x0f,0x1c

# CHECK: v_pk_mad_i16 v5, v1, s2, v3             ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0x05,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, s101, v3           ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xcb,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xcb,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, flat_scratch_lo, v3 ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xcd,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xcd,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, flat_scratch_hi, v3 ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xcf,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xcf,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, vcc_lo, v3         ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xd5,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xd5,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, vcc_hi, v3         ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xd7,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xd7,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, m0, v3             ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xf9,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xf9,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, exec_lo, v3        ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xfd,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xfd,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, exec_hi, v3        ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xff,0x0c,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xff,0x0c,0x1c

# CHECK: v_pk_mad_i16 v5, v1, 0, v3              ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x01,0x0d,0x1c]
0x05,0x40,0x80,0xd3,0x01,0x01,0x0d,0x1c

# CHECK: v_pk_mad_i16 v5, v1, -1, v3             ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x83,0x0d,0x1c]
0x05,0x40,0x80,0xd3,0x01,0x83,0x0d,0x1c

# CHECK: v_pk_mad_i16 v5, v1, 0x3800, v3         ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xff,0x0d,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xe1,0x0d,0x1c

# CHECK: v_pk_mad_i16 v5, v1, 0xc400, v3         ; encoding: [0x05,0x40,0x80,0xd3,0x01,0xff,0x0d,0x1c]
0x05,0x40,0x80,0xd3,0x01,0xef,0x0d,0x1c

# CHECK: v_pk_mad_i16 v5, v1, v2, v255           ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0xfe,0x1f]
0x05,0x40,0x80,0xd3,0x01,0x05,0xfe,0x1f

# CHECK: v_pk_mad_i16 v5, v1, v2, s3             ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x0e,0x18]
0x05,0x40,0x80,0xd3,0x01,0x05,0x0e,0x18

# CHECK: v_pk_mad_i16 v5, v1, v2, s101           ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x96,0x19]
0x05,0x40,0x80,0xd3,0x01,0x05,0x96,0x19

# CHECK: v_pk_mad_i16 v5, v1, v2, flat_scratch_lo ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x9a,0x19]
0x05,0x40,0x80,0xd3,0x01,0x05,0x9a,0x19

# CHECK: v_pk_mad_i16 v5, v1, v2, flat_scratch_hi ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x9e,0x19]
0x05,0x40,0x80,0xd3,0x01,0x05,0x9e,0x19

# CHECK: v_pk_mad_i16 v5, v1, v2, vcc_lo         ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0xaa,0x19]
0x05,0x40,0x80,0xd3,0x01,0x05,0xaa,0x19

# CHECK: v_pk_mad_i16 v5, v1, v2, vcc_hi         ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0xae,0x19]
0x05,0x40,0x80,0xd3,0x01,0x05,0xae,0x19

# CHECK: v_pk_mad_i16 v5, v1, v2, m0             ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0xf2,0x19]
0x05,0x40,0x80,0xd3,0x01,0x05,0xf2,0x19

# CHECK: v_pk_mad_i16 v5, v1, v2, exec_lo        ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0xfa,0x19]
0x05,0x40,0x80,0xd3,0x01,0x05,0xfa,0x19

# CHECK: v_pk_mad_i16 v5, v1, v2, exec_hi        ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0xfe,0x19]
0x05,0x40,0x80,0xd3,0x01,0x05,0xfe,0x19

# CHECK: v_pk_mad_i16 v5, v1, v2, 0              ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x02,0x1a]
0x05,0x40,0x80,0xd3,0x01,0x05,0x02,0x1a

# CHECK: v_pk_mad_i16 v5, v1, v2, -1             ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x06,0x1b]
0x05,0x40,0x80,0xd3,0x01,0x05,0x06,0x1b

# CHECK: v_pk_mad_i16 v5, v1, v2, 0x3800         ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0xfe,0x1b]
0x05,0x40,0x80,0xd3,0x01,0x05,0xc2,0x1b

# CHECK: v_pk_mad_i16 v5, v1, v2, 0xc400         ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0xfe,0x1b]
0x05,0x40,0x80,0xd3,0x01,0x05,0xde,0x1b

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 op_sel:[1,0,0] ; encoding: [0x05,0x48,0x80,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x48,0x80,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 op_sel:[0,1,0] ; encoding: [0x05,0x50,0x80,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x50,0x80,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x05,0x60,0x80,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x60,0x80,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 op_sel:[1,1,1] ; encoding: [0x05,0x78,0x80,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x78,0x80,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 op_sel_hi:[0,0,0] ; encoding: [0x05,0x00,0x80,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0x80,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 op_sel_hi:[1,0,0] ; encoding: [0x05,0x00,0x80,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0x80,0xd3,0x01,0x05,0x0e,0x0c

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 op_sel_hi:[0,1,0] ; encoding: [0x05,0x00,0x80,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0x80,0xd3,0x01,0x05,0x0e,0x14

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 op_sel_hi:[0,0,1] ; encoding: [0x05,0x40,0x80,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0x80,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_pk_mad_i16 v5, v1, v2, v3 clamp       ; encoding: [0x05,0xc0,0x80,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0xc0,0x80,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mul_lo_u16 v5, v1, v2              ; encoding: [0x05,0x40,0x81,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v255, v1, v2            ; encoding: [0xff,0x40,0x81,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x81,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, v255, v2            ; encoding: [0x05,0x40,0x81,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x81,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, s1, v2              ; encoding: [0x05,0x40,0x81,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, s101, v2            ; encoding: [0x05,0x40,0x81,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x40,0x81,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x40,0x81,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, vcc_lo, v2          ; encoding: [0x05,0x40,0x81,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, vcc_hi, v2          ; encoding: [0x05,0x40,0x81,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, m0, v2              ; encoding: [0x05,0x40,0x81,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, exec_lo, v2         ; encoding: [0x05,0x40,0x81,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, exec_hi, v2         ; encoding: [0x05,0x40,0x81,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, 0, v2               ; encoding: [0x05,0x40,0x81,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, -1, v2              ; encoding: [0x05,0x40,0x81,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, 0x3800, v2          ; encoding: [0x05,0x40,0x81,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, 0xc400, v2          ; encoding: [0x05,0x40,0x81,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x81,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, v255            ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x81,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, s2              ; encoding: [0x05,0x40,0x81,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, s101            ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, vcc_lo          ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, vcc_hi          ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, m0              ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, exec_lo         ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, exec_hi         ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x81,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, 0               ; encoding: [0x05,0x40,0x81,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x81,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, -1              ; encoding: [0x05,0x40,0x81,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x81,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, 0x3800          ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x81,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, 0xc400          ; encoding: [0x05,0x40,0x81,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x81,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x48,0x81,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x81,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x50,0x81,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x81,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x58,0x81,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x81,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x81,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x81,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_mul_lo_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x81,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x81,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_add_i16 v5, v1, v2                 ; encoding: [0x05,0x40,0x82,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_i16 v255, v1, v2               ; encoding: [0xff,0x40,0x82,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x82,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_i16 v5, v255, v2               ; encoding: [0x05,0x40,0x82,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x82,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_add_i16 v5, s1, v2                 ; encoding: [0x05,0x40,0x82,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, s101, v2               ; encoding: [0x05,0x40,0x82,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x82,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x82,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x82,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x82,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, m0, v2                 ; encoding: [0x05,0x40,0x82,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x82,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x82,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, 0, v2                  ; encoding: [0x05,0x40,0x82,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, -1, v2                 ; encoding: [0x05,0x40,0x82,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, 0x3800, v2             ; encoding: [0x05,0x40,0x82,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, 0xc400, v2             ; encoding: [0x05,0x40,0x82,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x82,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_add_i16 v5, v1, v255               ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x82,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_add_i16 v5, v1, s2                 ; encoding: [0x05,0x40,0x82,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, s101               ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, m0                 ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x82,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_add_i16 v5, v1, 0                  ; encoding: [0x05,0x40,0x82,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x82,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_add_i16 v5, v1, -1                 ; encoding: [0x05,0x40,0x82,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x82,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_add_i16 v5, v1, 0x3800             ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x82,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_add_i16 v5, v1, 0xc400             ; encoding: [0x05,0x40,0x82,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x82,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_add_i16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x82,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x82,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_i16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x82,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x82,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_i16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x82,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x82,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x82,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_add_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x82,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_add_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x82,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x82,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_add_i16 v5, v1, v2 clamp           ; encoding: [0x05,0xc0,0x82,0xd3,0x01,0x05,0x02,0x18]
0x05,0x80,0x82,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_i16 v5, v1, v2                 ; encoding: [0x05,0x40,0x83,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_i16 v255, v1, v2               ; encoding: [0xff,0x40,0x83,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x83,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_i16 v5, v255, v2               ; encoding: [0x05,0x40,0x83,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x83,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_sub_i16 v5, s1, v2                 ; encoding: [0x05,0x40,0x83,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, s101, v2               ; encoding: [0x05,0x40,0x83,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x83,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x83,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x83,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x83,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, m0, v2                 ; encoding: [0x05,0x40,0x83,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x83,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x83,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, 0, v2                  ; encoding: [0x05,0x40,0x83,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, -1, v2                 ; encoding: [0x05,0x40,0x83,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, 0x3800, v2             ; encoding: [0x05,0x40,0x83,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, 0xc400, v2             ; encoding: [0x05,0x40,0x83,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x83,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_sub_i16 v5, v1, v255               ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x83,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_sub_i16 v5, v1, s2                 ; encoding: [0x05,0x40,0x83,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, s101               ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, m0                 ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x83,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_sub_i16 v5, v1, 0                  ; encoding: [0x05,0x40,0x83,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x83,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_sub_i16 v5, v1, -1                 ; encoding: [0x05,0x40,0x83,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x83,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_sub_i16 v5, v1, 0x3800             ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x83,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_sub_i16 v5, v1, 0xc400             ; encoding: [0x05,0x40,0x83,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x83,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x83,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x83,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x83,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x83,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x83,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x83,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x83,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x83,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_sub_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x83,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x83,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_sub_i16 v5, v1, v2 clamp           ; encoding: [0x05,0xc0,0x83,0xd3,0x01,0x05,0x02,0x18]
0x05,0x80,0x83,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, v2             ; encoding: [0x05,0x40,0x84,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v255, v1, v2           ; encoding: [0xff,0x40,0x84,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x84,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, v255, v2           ; encoding: [0x05,0x40,0x84,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x84,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, s1, v2             ; encoding: [0x05,0x40,0x84,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, s101, v2           ; encoding: [0x05,0x40,0x84,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x40,0x84,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x40,0x84,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, vcc_lo, v2         ; encoding: [0x05,0x40,0x84,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, vcc_hi, v2         ; encoding: [0x05,0x40,0x84,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, m0, v2             ; encoding: [0x05,0x40,0x84,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, exec_lo, v2        ; encoding: [0x05,0x40,0x84,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, exec_hi, v2        ; encoding: [0x05,0x40,0x84,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, 0, v2              ; encoding: [0x05,0x40,0x84,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, -1, v2             ; encoding: [0x05,0x40,0x84,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, 0x3800, v2         ; encoding: [0x05,0x40,0x84,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, 0xc400, v2         ; encoding: [0x05,0x40,0x84,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x84,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, v255           ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x84,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, s2             ; encoding: [0x05,0x40,0x84,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, s101           ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, vcc_lo         ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, vcc_hi         ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, m0             ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, exec_lo        ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, exec_hi        ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x84,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, 0              ; encoding: [0x05,0x40,0x84,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x84,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, -1             ; encoding: [0x05,0x40,0x84,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x84,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, 0x3800         ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x84,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, 0xc400         ; encoding: [0x05,0x40,0x84,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x84,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x48,0x84,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x84,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x50,0x84,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x84,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x58,0x84,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x84,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x84,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x84,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_lshlrev_b16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x84,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x84,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_lshrrev_b16 v5, v1, v2             ; encoding: [0x05,0x40,0x85,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v255, v1, v2           ; encoding: [0xff,0x40,0x85,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x85,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, v255, v2           ; encoding: [0x05,0x40,0x85,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x85,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, s1, v2             ; encoding: [0x05,0x40,0x85,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, s101, v2           ; encoding: [0x05,0x40,0x85,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x40,0x85,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x40,0x85,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, vcc_lo, v2         ; encoding: [0x05,0x40,0x85,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, vcc_hi, v2         ; encoding: [0x05,0x40,0x85,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, m0, v2             ; encoding: [0x05,0x40,0x85,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, exec_lo, v2        ; encoding: [0x05,0x40,0x85,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, exec_hi, v2        ; encoding: [0x05,0x40,0x85,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, 0, v2              ; encoding: [0x05,0x40,0x85,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, -1, v2             ; encoding: [0x05,0x40,0x85,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, 0x3800, v2         ; encoding: [0x05,0x40,0x85,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, 0xc400, v2         ; encoding: [0x05,0x40,0x85,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x85,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, v255           ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x85,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, s2             ; encoding: [0x05,0x40,0x85,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, s101           ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, vcc_lo         ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, vcc_hi         ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, m0             ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, exec_lo        ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, exec_hi        ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x85,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, 0              ; encoding: [0x05,0x40,0x85,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x85,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, -1             ; encoding: [0x05,0x40,0x85,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x85,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, 0x3800         ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x85,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, 0xc400         ; encoding: [0x05,0x40,0x85,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x85,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x48,0x85,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x85,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x50,0x85,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x85,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x58,0x85,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x85,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x85,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x85,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_lshrrev_b16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x85,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x85,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_ashrrev_i16 v5, v1, v2             ; encoding: [0x05,0x40,0x86,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v255, v1, v2           ; encoding: [0xff,0x40,0x86,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x86,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, v255, v2           ; encoding: [0x05,0x40,0x86,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x86,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, s1, v2             ; encoding: [0x05,0x40,0x86,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, s101, v2           ; encoding: [0x05,0x40,0x86,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, flat_scratch_lo, v2 ; encoding: [0x05,0x40,0x86,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, flat_scratch_hi, v2 ; encoding: [0x05,0x40,0x86,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, vcc_lo, v2         ; encoding: [0x05,0x40,0x86,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, vcc_hi, v2         ; encoding: [0x05,0x40,0x86,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, m0, v2             ; encoding: [0x05,0x40,0x86,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, exec_lo, v2        ; encoding: [0x05,0x40,0x86,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, exec_hi, v2        ; encoding: [0x05,0x40,0x86,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, 0, v2              ; encoding: [0x05,0x40,0x86,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, -1, v2             ; encoding: [0x05,0x40,0x86,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, 0x3800, v2         ; encoding: [0x05,0x40,0x86,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, 0xc400, v2         ; encoding: [0x05,0x40,0x86,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x86,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, v255           ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x86,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, s2             ; encoding: [0x05,0x40,0x86,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, s101           ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, flat_scratch_lo ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, flat_scratch_hi ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, vcc_lo         ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, vcc_hi         ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, m0             ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, exec_lo        ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, exec_hi        ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x86,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, 0              ; encoding: [0x05,0x40,0x86,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x86,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, -1             ; encoding: [0x05,0x40,0x86,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x86,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, 0x3800         ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x86,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, 0xc400         ; encoding: [0x05,0x40,0x86,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x86,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel:[1,0] ; encoding: [0x05,0x48,0x86,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x86,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel:[0,1] ; encoding: [0x05,0x50,0x86,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x86,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel:[1,1] ; encoding: [0x05,0x58,0x86,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x86,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x86,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x86,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_ashrrev_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x86,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x86,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_max_i16 v5, v1, v2                 ; encoding: [0x05,0x40,0x87,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_i16 v255, v1, v2               ; encoding: [0xff,0x40,0x87,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x87,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_i16 v5, v255, v2               ; encoding: [0x05,0x40,0x87,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x87,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_max_i16 v5, s1, v2                 ; encoding: [0x05,0x40,0x87,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, s101, v2               ; encoding: [0x05,0x40,0x87,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x87,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x87,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x87,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x87,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, m0, v2                 ; encoding: [0x05,0x40,0x87,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x87,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x87,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, 0, v2                  ; encoding: [0x05,0x40,0x87,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, -1, v2                 ; encoding: [0x05,0x40,0x87,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, 0x3800, v2             ; encoding: [0x05,0x40,0x87,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, 0xc400, v2             ; encoding: [0x05,0x40,0x87,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x87,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_max_i16 v5, v1, v255               ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x87,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_max_i16 v5, v1, s2                 ; encoding: [0x05,0x40,0x87,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, s101               ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, m0                 ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x87,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_max_i16 v5, v1, 0                  ; encoding: [0x05,0x40,0x87,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x87,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_max_i16 v5, v1, -1                 ; encoding: [0x05,0x40,0x87,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x87,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_max_i16 v5, v1, 0x3800             ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x87,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_max_i16 v5, v1, 0xc400             ; encoding: [0x05,0x40,0x87,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x87,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_max_i16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x87,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x87,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_i16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x87,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x87,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_i16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x87,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x87,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x87,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_max_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x87,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_max_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x87,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x87,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_min_i16 v5, v1, v2                 ; encoding: [0x05,0x40,0x88,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_i16 v255, v1, v2               ; encoding: [0xff,0x40,0x88,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x88,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_i16 v5, v255, v2               ; encoding: [0x05,0x40,0x88,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x88,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_min_i16 v5, s1, v2                 ; encoding: [0x05,0x40,0x88,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, s101, v2               ; encoding: [0x05,0x40,0x88,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x88,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x88,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x88,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x88,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, m0, v2                 ; encoding: [0x05,0x40,0x88,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x88,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x88,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, 0, v2                  ; encoding: [0x05,0x40,0x88,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, -1, v2                 ; encoding: [0x05,0x40,0x88,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, 0x3800, v2             ; encoding: [0x05,0x40,0x88,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, 0xc400, v2             ; encoding: [0x05,0x40,0x88,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x88,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_min_i16 v5, v1, v255               ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x88,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_min_i16 v5, v1, s2                 ; encoding: [0x05,0x40,0x88,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, s101               ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, m0                 ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x88,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_min_i16 v5, v1, 0                  ; encoding: [0x05,0x40,0x88,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x88,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_min_i16 v5, v1, -1                 ; encoding: [0x05,0x40,0x88,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x88,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_min_i16 v5, v1, 0x3800             ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x88,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_min_i16 v5, v1, 0xc400             ; encoding: [0x05,0x40,0x88,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x88,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_min_i16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x88,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x88,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_i16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x88,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x88,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_i16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x88,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x88,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_i16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x88,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_min_i16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x88,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_min_i16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x88,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x88,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_mad_u16 v5, v1, v2, v3             ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_u16 v255, v1, v2, v3           ; encoding: [0xff,0x40,0x89,0xd3,0x01,0x05,0x0e,0x1c]
0xff,0x40,0x89,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, v255, v2, v3           ; encoding: [0x05,0x40,0x89,0xd3,0xff,0x05,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0xff,0x05,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, s1, v2, v3             ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x01,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, s101, v2, v3           ; encoding: [0x05,0x40,0x89,0xd3,0x65,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x65,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, flat_scratch_lo, v2, v3 ; encoding: [0x05,0x40,0x89,0xd3,0x66,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x66,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, flat_scratch_hi, v2, v3 ; encoding: [0x05,0x40,0x89,0xd3,0x67,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x67,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, vcc_lo, v2, v3         ; encoding: [0x05,0x40,0x89,0xd3,0x6a,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x6a,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, vcc_hi, v2, v3         ; encoding: [0x05,0x40,0x89,0xd3,0x6b,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x6b,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, m0, v2, v3             ; encoding: [0x05,0x40,0x89,0xd3,0x7c,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x7c,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, exec_lo, v2, v3        ; encoding: [0x05,0x40,0x89,0xd3,0x7e,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x7e,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, exec_hi, v2, v3        ; encoding: [0x05,0x40,0x89,0xd3,0x7f,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x7f,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, 0, v2, v3              ; encoding: [0x05,0x40,0x89,0xd3,0x80,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0x80,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, -1, v2, v3             ; encoding: [0x05,0x40,0x89,0xd3,0xc1,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0xc1,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, 0x3800, v2, v3         ; encoding: [0x05,0x40,0x89,0xd3,0xff,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0xf0,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, 0xc400, v2, v3         ; encoding: [0x05,0x40,0x89,0xd3,0xff,0x04,0x0e,0x1c]
0x05,0x40,0x89,0xd3,0xf7,0x04,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, v1, v255, v3           ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xff,0x0f,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xff,0x0f,0x1c

# CHECK: v_pk_mad_u16 v5, v1, s2, v3             ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0x05,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, s101, v3           ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xcb,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xcb,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, flat_scratch_lo, v3 ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xcd,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xcd,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, flat_scratch_hi, v3 ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xcf,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xcf,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, vcc_lo, v3         ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xd5,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xd5,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, vcc_hi, v3         ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xd7,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xd7,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, m0, v3             ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xf9,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xf9,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, exec_lo, v3        ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xfd,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xfd,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, exec_hi, v3        ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xff,0x0c,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xff,0x0c,0x1c

# CHECK: v_pk_mad_u16 v5, v1, 0, v3              ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x01,0x0d,0x1c]
0x05,0x40,0x89,0xd3,0x01,0x01,0x0d,0x1c

# CHECK: v_pk_mad_u16 v5, v1, -1, v3             ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x83,0x0d,0x1c]
0x05,0x40,0x89,0xd3,0x01,0x83,0x0d,0x1c

# CHECK: v_pk_mad_u16 v5, v1, 0x3800, v3         ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xff,0x0d,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xe1,0x0d,0x1c

# CHECK: v_pk_mad_u16 v5, v1, 0xc400, v3         ; encoding: [0x05,0x40,0x89,0xd3,0x01,0xff,0x0d,0x1c]
0x05,0x40,0x89,0xd3,0x01,0xef,0x0d,0x1c

# CHECK: v_pk_mad_u16 v5, v1, v2, v255           ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0xfe,0x1f]
0x05,0x40,0x89,0xd3,0x01,0x05,0xfe,0x1f

# CHECK: v_pk_mad_u16 v5, v1, v2, s3             ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x0e,0x18]
0x05,0x40,0x89,0xd3,0x01,0x05,0x0e,0x18

# CHECK: v_pk_mad_u16 v5, v1, v2, s101           ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x96,0x19]
0x05,0x40,0x89,0xd3,0x01,0x05,0x96,0x19

# CHECK: v_pk_mad_u16 v5, v1, v2, flat_scratch_lo ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x9a,0x19]
0x05,0x40,0x89,0xd3,0x01,0x05,0x9a,0x19

# CHECK: v_pk_mad_u16 v5, v1, v2, flat_scratch_hi ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x9e,0x19]
0x05,0x40,0x89,0xd3,0x01,0x05,0x9e,0x19

# CHECK: v_pk_mad_u16 v5, v1, v2, vcc_lo         ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0xaa,0x19]
0x05,0x40,0x89,0xd3,0x01,0x05,0xaa,0x19

# CHECK: v_pk_mad_u16 v5, v1, v2, vcc_hi         ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0xae,0x19]
0x05,0x40,0x89,0xd3,0x01,0x05,0xae,0x19

# CHECK: v_pk_mad_u16 v5, v1, v2, m0             ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0xf2,0x19]
0x05,0x40,0x89,0xd3,0x01,0x05,0xf2,0x19

# CHECK: v_pk_mad_u16 v5, v1, v2, exec_lo        ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0xfa,0x19]
0x05,0x40,0x89,0xd3,0x01,0x05,0xfa,0x19

# CHECK: v_pk_mad_u16 v5, v1, v2, exec_hi        ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0xfe,0x19]
0x05,0x40,0x89,0xd3,0x01,0x05,0xfe,0x19

# CHECK: v_pk_mad_u16 v5, v1, v2, 0              ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x02,0x1a]
0x05,0x40,0x89,0xd3,0x01,0x05,0x02,0x1a

# CHECK: v_pk_mad_u16 v5, v1, v2, -1             ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x06,0x1b]
0x05,0x40,0x89,0xd3,0x01,0x05,0x06,0x1b

# CHECK: v_pk_mad_u16 v5, v1, v2, 0x3800         ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0xfe,0x1b]
0x05,0x40,0x89,0xd3,0x01,0x05,0xc2,0x1b

# CHECK: v_pk_mad_u16 v5, v1, v2, 0xc400         ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0xfe,0x1b]
0x05,0x40,0x89,0xd3,0x01,0x05,0xde,0x1b

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 op_sel:[1,0,0] ; encoding: [0x05,0x48,0x89,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x48,0x89,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 op_sel:[0,1,0] ; encoding: [0x05,0x50,0x89,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x50,0x89,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x05,0x60,0x89,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x60,0x89,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 op_sel:[1,1,1] ; encoding: [0x05,0x78,0x89,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x78,0x89,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 op_sel_hi:[0,0,0] ; encoding: [0x05,0x00,0x89,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0x89,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 op_sel_hi:[1,0,0] ; encoding: [0x05,0x00,0x89,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0x89,0xd3,0x01,0x05,0x0e,0x0c

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 op_sel_hi:[0,1,0] ; encoding: [0x05,0x00,0x89,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0x89,0xd3,0x01,0x05,0x0e,0x14

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 op_sel_hi:[0,0,1] ; encoding: [0x05,0x40,0x89,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0x89,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_pk_mad_u16 v5, v1, v2, v3 clamp       ; encoding: [0x05,0xc0,0x89,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0xc0,0x89,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_add_u16 v5, v1, v2                 ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_u16 v255, v1, v2               ; encoding: [0xff,0x40,0x8a,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x8a,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_u16 v5, v255, v2               ; encoding: [0x05,0x40,0x8a,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x8a,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_add_u16 v5, s1, v2                 ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, s101, v2               ; encoding: [0x05,0x40,0x8a,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x8a,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x8a,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x8a,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x8a,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, m0, v2                 ; encoding: [0x05,0x40,0x8a,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x8a,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x8a,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, 0, v2                  ; encoding: [0x05,0x40,0x8a,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, -1, v2                 ; encoding: [0x05,0x40,0x8a,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, 0x3800, v2             ; encoding: [0x05,0x40,0x8a,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, 0xc400, v2             ; encoding: [0x05,0x40,0x8a,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x8a,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_add_u16 v5, v1, v255               ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_add_u16 v5, v1, s2                 ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, s101               ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, m0                 ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_add_u16 v5, v1, 0                  ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x8a,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_add_u16 v5, v1, -1                 ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x8a,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_add_u16 v5, v1, 0x3800             ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_add_u16 v5, v1, 0xc400             ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x8a,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_add_u16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x8a,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x8a,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_u16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x8a,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x8a,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_u16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x8a,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x8a,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_add_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_add_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x8a,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x8a,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_add_u16 v5, v1, v2 clamp           ; encoding: [0x05,0xc0,0x8a,0xd3,0x01,0x05,0x02,0x18]
0x05,0x80,0x8a,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_u16 v5, v1, v2                 ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_u16 v255, v1, v2               ; encoding: [0xff,0x40,0x8b,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x8b,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_u16 v5, v255, v2               ; encoding: [0x05,0x40,0x8b,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x8b,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_sub_u16 v5, s1, v2                 ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, s101, v2               ; encoding: [0x05,0x40,0x8b,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x8b,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x8b,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x8b,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x8b,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, m0, v2                 ; encoding: [0x05,0x40,0x8b,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x8b,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x8b,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, 0, v2                  ; encoding: [0x05,0x40,0x8b,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, -1, v2                 ; encoding: [0x05,0x40,0x8b,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, 0x3800, v2             ; encoding: [0x05,0x40,0x8b,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, 0xc400, v2             ; encoding: [0x05,0x40,0x8b,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x8b,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_sub_u16 v5, v1, v255               ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_sub_u16 v5, v1, s2                 ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, s101               ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, m0                 ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_sub_u16 v5, v1, 0                  ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x8b,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_sub_u16 v5, v1, -1                 ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x8b,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_sub_u16 v5, v1, 0x3800             ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_sub_u16 v5, v1, 0xc400             ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x8b,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_sub_u16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x8b,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x8b,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_u16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x8b,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x8b,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_u16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x8b,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x8b,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_sub_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x8b,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_sub_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x8b,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_sub_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x8b,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x8b,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_sub_u16 v5, v1, v2 clamp           ; encoding: [0x05,0xc0,0x8b,0xd3,0x01,0x05,0x02,0x18]
0x05,0x80,0x8b,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_u16 v5, v1, v2                 ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_u16 v255, v1, v2               ; encoding: [0xff,0x40,0x8c,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x8c,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_u16 v5, v255, v2               ; encoding: [0x05,0x40,0x8c,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x8c,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_max_u16 v5, s1, v2                 ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, s101, v2               ; encoding: [0x05,0x40,0x8c,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x8c,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x8c,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x8c,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x8c,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, m0, v2                 ; encoding: [0x05,0x40,0x8c,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x8c,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x8c,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, 0, v2                  ; encoding: [0x05,0x40,0x8c,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, -1, v2                 ; encoding: [0x05,0x40,0x8c,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, 0x3800, v2             ; encoding: [0x05,0x40,0x8c,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, 0xc400, v2             ; encoding: [0x05,0x40,0x8c,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x8c,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_max_u16 v5, v1, v255               ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_max_u16 v5, v1, s2                 ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, s101               ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, m0                 ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_max_u16 v5, v1, 0                  ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x8c,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_max_u16 v5, v1, -1                 ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x8c,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_max_u16 v5, v1, 0x3800             ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_max_u16 v5, v1, 0xc400             ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x8c,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_max_u16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x8c,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x8c,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_u16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x8c,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x8c,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_u16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x8c,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x8c,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_max_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_max_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x8c,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x8c,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_min_u16 v5, v1, v2                 ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_u16 v255, v1, v2               ; encoding: [0xff,0x40,0x8d,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x8d,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_u16 v5, v255, v2               ; encoding: [0x05,0x40,0x8d,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x8d,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_min_u16 v5, s1, v2                 ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, s101, v2               ; encoding: [0x05,0x40,0x8d,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x8d,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x8d,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x8d,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x8d,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, m0, v2                 ; encoding: [0x05,0x40,0x8d,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x8d,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x8d,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, 0, v2                  ; encoding: [0x05,0x40,0x8d,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, -1, v2                 ; encoding: [0x05,0x40,0x8d,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, 0x3800, v2             ; encoding: [0x05,0x40,0x8d,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, 0xc400, v2             ; encoding: [0x05,0x40,0x8d,0xd3,0xff,0x04,0x02,0x18]
0x05,0x00,0x8d,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_min_u16 v5, v1, v255               ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_min_u16 v5, v1, s2                 ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, s101               ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, m0                 ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_min_u16 v5, v1, 0                  ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x8d,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_min_u16 v5, v1, -1                 ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x8d,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_min_u16 v5, v1, 0x3800             ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_min_u16 v5, v1, 0xc400             ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0xff,0x01,0x18]
0x05,0x00,0x8d,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_min_u16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x8d,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x8d,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_u16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x8d,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x8d,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_u16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x8d,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x8d,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_u16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_min_u16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_min_u16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x8d,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x8d,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_fma_f16 v5, v1, v2, v3             ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v255, v1, v2, v3           ; encoding: [0xff,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0xff,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v255, v2, v3           ; encoding: [0x05,0x40,0x8e,0xd3,0xff,0x05,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0xff,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, s1, v2, v3             ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, s101, v2, v3           ; encoding: [0x05,0x40,0x8e,0xd3,0x65,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x65,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, flat_scratch_lo, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x66,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x66,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, flat_scratch_hi, v2, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x67,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x67,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, vcc_lo, v2, v3         ; encoding: [0x05,0x40,0x8e,0xd3,0x6a,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x6a,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, vcc_hi, v2, v3         ; encoding: [0x05,0x40,0x8e,0xd3,0x6b,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x6b,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, m0, v2, v3             ; encoding: [0x05,0x40,0x8e,0xd3,0x7c,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x7c,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, exec_lo, v2, v3        ; encoding: [0x05,0x40,0x8e,0xd3,0x7e,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x7e,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, exec_hi, v2, v3        ; encoding: [0x05,0x40,0x8e,0xd3,0x7f,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x7f,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, 0, v2, v3              ; encoding: [0x05,0x40,0x8e,0xd3,0x80,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0x80,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, -1, v2, v3             ; encoding: [0x05,0x40,0x8e,0xd3,0xc1,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0xc1,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, 0.5, v2, v3            ; encoding: [0x05,0x40,0x8e,0xd3,0xf0,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0xf0,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, -4.0, v2, v3           ; encoding: [0x05,0x40,0x8e,0xd3,0xf7,0x04,0x0e,0x1c]
0x05,0x40,0x8e,0xd3,0xf7,0x04,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v255, v3           ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xff,0x0f,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xff,0x0f,0x1c

# CHECK: v_pk_fma_f16 v5, v1, s2, v3             ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, s101, v3           ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xcb,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xcb,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, flat_scratch_lo, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xcd,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xcd,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, flat_scratch_hi, v3 ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xcf,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xcf,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, vcc_lo, v3         ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xd5,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xd5,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, vcc_hi, v3         ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xd7,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xd7,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, m0, v3             ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xf9,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xf9,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, exec_lo, v3        ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xfd,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xfd,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, exec_hi, v3        ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xff,0x0c,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xff,0x0c,0x1c

# CHECK: v_pk_fma_f16 v5, v1, 0, v3              ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x01,0x0d,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0x01,0x0d,0x1c

# CHECK: v_pk_fma_f16 v5, v1, -1, v3             ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x83,0x0d,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0x83,0x0d,0x1c

# CHECK: v_pk_fma_f16 v5, v1, 0.5, v3            ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xe1,0x0d,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xe1,0x0d,0x1c

# CHECK: v_pk_fma_f16 v5, v1, -4.0, v3           ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0xef,0x0d,0x1c]
0x05,0x40,0x8e,0xd3,0x01,0xef,0x0d,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v255           ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xfe,0x1f]
0x05,0x40,0x8e,0xd3,0x01,0x05,0xfe,0x1f

# CHECK: v_pk_fma_f16 v5, v1, v2, s3             ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x18]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x18

# CHECK: v_pk_fma_f16 v5, v1, v2, s101           ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x96,0x19]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x96,0x19

# CHECK: v_pk_fma_f16 v5, v1, v2, flat_scratch_lo ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x9a,0x19]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x9a,0x19

# CHECK: v_pk_fma_f16 v5, v1, v2, flat_scratch_hi ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x9e,0x19]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x9e,0x19

# CHECK: v_pk_fma_f16 v5, v1, v2, vcc_lo         ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xaa,0x19]
0x05,0x40,0x8e,0xd3,0x01,0x05,0xaa,0x19

# CHECK: v_pk_fma_f16 v5, v1, v2, vcc_hi         ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xae,0x19]
0x05,0x40,0x8e,0xd3,0x01,0x05,0xae,0x19

# CHECK: v_pk_fma_f16 v5, v1, v2, m0             ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xf2,0x19]
0x05,0x40,0x8e,0xd3,0x01,0x05,0xf2,0x19

# CHECK: v_pk_fma_f16 v5, v1, v2, exec_lo        ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xfa,0x19]
0x05,0x40,0x8e,0xd3,0x01,0x05,0xfa,0x19

# CHECK: v_pk_fma_f16 v5, v1, v2, exec_hi        ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xfe,0x19]
0x05,0x40,0x8e,0xd3,0x01,0x05,0xfe,0x19

# CHECK: v_pk_fma_f16 v5, v1, v2, 0              ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x02,0x1a]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x02,0x1a

# CHECK: v_pk_fma_f16 v5, v1, v2, -1             ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x06,0x1b]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x06,0x1b

# CHECK: v_pk_fma_f16 v5, v1, v2, 0.5            ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xc2,0x1b]
0x05,0x40,0x8e,0xd3,0x01,0x05,0xc2,0x1b

# CHECK: v_pk_fma_f16 v5, v1, v2, -4.0           ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0xde,0x1b]
0x05,0x40,0x8e,0xd3,0x01,0x05,0xde,0x1b

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 op_sel:[1,0,0] ; encoding: [0x05,0x48,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x48,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 op_sel:[0,1,0] ; encoding: [0x05,0x50,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x50,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x05,0x60,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x60,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 op_sel:[1,1,1] ; encoding: [0x05,0x78,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x78,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 op_sel_hi:[0,0,0] ; encoding: [0x05,0x00,0x8e,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0x8e,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 op_sel_hi:[1,0,0] ; encoding: [0x05,0x00,0x8e,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0x8e,0xd3,0x01,0x05,0x0e,0x0c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 op_sel_hi:[0,1,0] ; encoding: [0x05,0x00,0x8e,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0x8e,0xd3,0x01,0x05,0x0e,0x14

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 op_sel_hi:[0,0,1] ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 neg_lo:[1,0,0] ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x3c]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x3c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 neg_lo:[0,1,0] ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x5c]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x5c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 neg_lo:[0,0,1] ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x9c]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0x9c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 neg_lo:[1,1,1] ; encoding: [0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0xfc]
0x05,0x40,0x8e,0xd3,0x01,0x05,0x0e,0xfc

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 neg_hi:[1,0,0] ; encoding: [0x05,0x41,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x41,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 neg_hi:[0,1,0] ; encoding: [0x05,0x42,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x42,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 neg_hi:[0,0,1] ; encoding: [0x05,0x44,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x44,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 neg_hi:[1,1,1] ; encoding: [0x05,0x47,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x47,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_fma_f16 v5, v1, v2, v3 clamp       ; encoding: [0x05,0xc0,0x8e,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0xc0,0x8e,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_pk_add_f16 v5, v1, v2                 ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v255, v1, v2               ; encoding: [0xff,0x40,0x8f,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v5, v255, v2               ; encoding: [0x05,0x40,0x8f,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x8f,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v5, s1, v2                 ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, s101, v2               ; encoding: [0x05,0x40,0x8f,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x8f,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x8f,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x8f,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x8f,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, m0, v2                 ; encoding: [0x05,0x40,0x8f,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x8f,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x8f,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, 0, v2                  ; encoding: [0x05,0x40,0x8f,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, -1, v2                 ; encoding: [0x05,0x40,0x8f,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, 0.5, v2                ; encoding: [0x05,0x40,0x8f,0xd3,0xf0,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, -4.0, v2               ; encoding: [0x05,0x40,0x8f,0xd3,0xf7,0x04,0x02,0x18]
0x05,0x00,0x8f,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_add_f16 v5, v1, v255               ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_add_f16 v5, v1, s2                 ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, s101               ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, m0                 ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_add_f16 v5, v1, 0                  ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x8f,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_add_f16 v5, v1, -1                 ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x8f,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_add_f16 v5, v1, 0.5                ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xe1,0x01,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_add_f16 v5, v1, -4.0               ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0xef,0x01,0x18]
0x05,0x00,0x8f,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_add_f16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x8f,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x8f,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x8f,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_add_f16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_add_f16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_add_f16 v5, v1, v2 neg_lo:[1,0]    ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x05,0x02,0x38]
0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x38

# CHECK: v_pk_add_f16 v5, v1, v2 neg_lo:[0,1]    ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x05,0x02,0x58]
0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x58

# CHECK: v_pk_add_f16 v5, v1, v2 neg_lo:[1,1]    ; encoding: [0x05,0x40,0x8f,0xd3,0x01,0x05,0x02,0x78]
0x05,0x00,0x8f,0xd3,0x01,0x05,0x02,0x78

# CHECK: v_pk_add_f16 v5, v1, v2 neg_hi:[1,0]    ; encoding: [0x05,0x41,0x8f,0xd3,0x01,0x05,0x02,0x18]
0x05,0x01,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v5, v1, v2 neg_hi:[0,1]    ; encoding: [0x05,0x42,0x8f,0xd3,0x01,0x05,0x02,0x18]
0x05,0x02,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v5, v1, v2 neg_hi:[1,1]    ; encoding: [0x05,0x43,0x8f,0xd3,0x01,0x05,0x02,0x18]
0x05,0x03,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_add_f16 v5, v1, v2 clamp           ; encoding: [0x05,0xc0,0x8f,0xd3,0x01,0x05,0x02,0x18]
0x05,0x80,0x8f,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v1, v2                 ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v255, v1, v2               ; encoding: [0xff,0x40,0x90,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v255, v2               ; encoding: [0x05,0x40,0x90,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x90,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, s1, v2                 ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, s101, v2               ; encoding: [0x05,0x40,0x90,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x90,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x90,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x90,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x90,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, m0, v2                 ; encoding: [0x05,0x40,0x90,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x90,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x90,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, 0, v2                  ; encoding: [0x05,0x40,0x90,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, -1, v2                 ; encoding: [0x05,0x40,0x90,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, 0.5, v2                ; encoding: [0x05,0x40,0x90,0xd3,0xf0,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, -4.0, v2               ; encoding: [0x05,0x40,0x90,0xd3,0xf7,0x04,0x02,0x18]
0x05,0x00,0x90,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v1, v255               ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x90,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_mul_f16 v5, v1, s2                 ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, s101               ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, m0                 ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x90,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_mul_f16 v5, v1, 0                  ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x90,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_mul_f16 v5, v1, -1                 ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x90,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_mul_f16 v5, v1, 0.5                ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xe1,0x01,0x18]
0x05,0x00,0x90,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_mul_f16 v5, v1, -4.0               ; encoding: [0x05,0x40,0x90,0xd3,0x01,0xef,0x01,0x18]
0x05,0x00,0x90,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x90,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x90,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x90,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_mul_f16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_mul_f16 v5, v1, v2 neg_lo:[1,0]    ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x05,0x02,0x38]
0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x38

# CHECK: v_pk_mul_f16 v5, v1, v2 neg_lo:[0,1]    ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x05,0x02,0x58]
0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x58

# CHECK: v_pk_mul_f16 v5, v1, v2 neg_lo:[1,1]    ; encoding: [0x05,0x40,0x90,0xd3,0x01,0x05,0x02,0x78]
0x05,0x00,0x90,0xd3,0x01,0x05,0x02,0x78

# CHECK: v_pk_mul_f16 v5, v1, v2 neg_hi:[1,0]    ; encoding: [0x05,0x41,0x90,0xd3,0x01,0x05,0x02,0x18]
0x05,0x01,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v1, v2 neg_hi:[0,1]    ; encoding: [0x05,0x42,0x90,0xd3,0x01,0x05,0x02,0x18]
0x05,0x02,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v1, v2 neg_hi:[1,1]    ; encoding: [0x05,0x43,0x90,0xd3,0x01,0x05,0x02,0x18]
0x05,0x03,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_mul_f16 v5, v1, v2 clamp           ; encoding: [0x05,0xc0,0x90,0xd3,0x01,0x05,0x02,0x18]
0x05,0x80,0x90,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, v1, v2                 ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v255, v1, v2               ; encoding: [0xff,0x40,0x91,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, v255, v2               ; encoding: [0x05,0x40,0x91,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x91,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, s1, v2                 ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, s101, v2               ; encoding: [0x05,0x40,0x91,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x91,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x91,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x91,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x91,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, m0, v2                 ; encoding: [0x05,0x40,0x91,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x91,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x91,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, 0, v2                  ; encoding: [0x05,0x40,0x91,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, -1, v2                 ; encoding: [0x05,0x40,0x91,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, 0.5, v2                ; encoding: [0x05,0x40,0x91,0xd3,0xf0,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, -4.0, v2               ; encoding: [0x05,0x40,0x91,0xd3,0xf7,0x04,0x02,0x18]
0x05,0x00,0x91,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_min_f16 v5, v1, v255               ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x91,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_min_f16 v5, v1, s2                 ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, s101               ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, m0                 ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x91,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_min_f16 v5, v1, 0                  ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x91,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_min_f16 v5, v1, -1                 ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x91,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_min_f16 v5, v1, 0.5                ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xe1,0x01,0x18]
0x05,0x00,0x91,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_min_f16 v5, v1, -4.0               ; encoding: [0x05,0x40,0x91,0xd3,0x01,0xef,0x01,0x18]
0x05,0x00,0x91,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_min_f16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x91,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x91,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x91,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_min_f16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_min_f16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_min_f16 v5, v1, v2 neg_lo:[1,0]    ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x05,0x02,0x38]
0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x38

# CHECK: v_pk_min_f16 v5, v1, v2 neg_lo:[0,1]    ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x05,0x02,0x58]
0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x58

# CHECK: v_pk_min_f16 v5, v1, v2 neg_lo:[1,1]    ; encoding: [0x05,0x40,0x91,0xd3,0x01,0x05,0x02,0x78]
0x05,0x00,0x91,0xd3,0x01,0x05,0x02,0x78

# CHECK: v_pk_min_f16 v5, v1, v2 neg_hi:[1,0]    ; encoding: [0x05,0x41,0x91,0xd3,0x01,0x05,0x02,0x18]
0x05,0x01,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, v1, v2 neg_hi:[0,1]    ; encoding: [0x05,0x42,0x91,0xd3,0x01,0x05,0x02,0x18]
0x05,0x02,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, v1, v2 neg_hi:[1,1]    ; encoding: [0x05,0x43,0x91,0xd3,0x01,0x05,0x02,0x18]
0x05,0x03,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_min_f16 v5, v1, v2 clamp           ; encoding: [0x05,0xc0,0x91,0xd3,0x01,0x05,0x02,0x18]
0x05,0x80,0x91,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, v1, v2                 ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x05,0x02,0x18]
0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v255, v1, v2               ; encoding: [0xff,0x40,0x92,0xd3,0x01,0x05,0x02,0x18]
0xff,0x00,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, v255, v2               ; encoding: [0x05,0x40,0x92,0xd3,0xff,0x05,0x02,0x18]
0x05,0x00,0x92,0xd3,0xff,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, s1, v2                 ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x01,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, s101, v2               ; encoding: [0x05,0x40,0x92,0xd3,0x65,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x65,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, flat_scratch_lo, v2    ; encoding: [0x05,0x40,0x92,0xd3,0x66,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x66,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, flat_scratch_hi, v2    ; encoding: [0x05,0x40,0x92,0xd3,0x67,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x67,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, vcc_lo, v2             ; encoding: [0x05,0x40,0x92,0xd3,0x6a,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x6a,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, vcc_hi, v2             ; encoding: [0x05,0x40,0x92,0xd3,0x6b,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x6b,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, m0, v2                 ; encoding: [0x05,0x40,0x92,0xd3,0x7c,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x7c,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, exec_lo, v2            ; encoding: [0x05,0x40,0x92,0xd3,0x7e,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x7e,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, exec_hi, v2            ; encoding: [0x05,0x40,0x92,0xd3,0x7f,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x7f,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, 0, v2                  ; encoding: [0x05,0x40,0x92,0xd3,0x80,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0x80,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, -1, v2                 ; encoding: [0x05,0x40,0x92,0xd3,0xc1,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0xc1,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, 0.5, v2                ; encoding: [0x05,0x40,0x92,0xd3,0xf0,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0xf0,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, -4.0, v2               ; encoding: [0x05,0x40,0x92,0xd3,0xf7,0x04,0x02,0x18]
0x05,0x00,0x92,0xd3,0xf7,0x04,0x02,0x18

# CHECK: v_pk_max_f16 v5, v1, v255               ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xff,0x03,0x18]
0x05,0x00,0x92,0xd3,0x01,0xff,0x03,0x18

# CHECK: v_pk_max_f16 v5, v1, s2                 ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x05,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0x05,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, s101               ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xcb,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0xcb,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, flat_scratch_lo    ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xcd,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0xcd,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, flat_scratch_hi    ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xcf,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0xcf,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, vcc_lo             ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xd5,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0xd5,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, vcc_hi             ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xd7,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0xd7,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, m0                 ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xf9,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0xf9,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, exec_lo            ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xfd,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0xfd,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, exec_hi            ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xff,0x00,0x18]
0x05,0x00,0x92,0xd3,0x01,0xff,0x00,0x18

# CHECK: v_pk_max_f16 v5, v1, 0                  ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x01,0x01,0x18]
0x05,0x00,0x92,0xd3,0x01,0x01,0x01,0x18

# CHECK: v_pk_max_f16 v5, v1, -1                 ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x83,0x01,0x18]
0x05,0x00,0x92,0xd3,0x01,0x83,0x01,0x18

# CHECK: v_pk_max_f16 v5, v1, 0.5                ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xe1,0x01,0x18]
0x05,0x00,0x92,0xd3,0x01,0xe1,0x01,0x18

# CHECK: v_pk_max_f16 v5, v1, -4.0               ; encoding: [0x05,0x40,0x92,0xd3,0x01,0xef,0x01,0x18]
0x05,0x00,0x92,0xd3,0x01,0xef,0x01,0x18

# CHECK: v_pk_max_f16 v5, v1, v2 op_sel:[1,0]    ; encoding: [0x05,0x48,0x92,0xd3,0x01,0x05,0x02,0x18]
0x05,0x08,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, v1, v2 op_sel:[0,1]    ; encoding: [0x05,0x50,0x92,0xd3,0x01,0x05,0x02,0x18]
0x05,0x10,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, v1, v2 op_sel:[1,1]    ; encoding: [0x05,0x58,0x92,0xd3,0x01,0x05,0x02,0x18]
0x05,0x18,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, v1, v2 op_sel_hi:[0,0] ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x05,0x02,0x00]
0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x00

# CHECK: v_pk_max_f16 v5, v1, v2 op_sel_hi:[1,0] ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x05,0x02,0x08]
0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x08

# CHECK: v_pk_max_f16 v5, v1, v2 op_sel_hi:[0,1] ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x05,0x02,0x10]
0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x10

# CHECK: v_pk_max_f16 v5, v1, v2 neg_lo:[1,0]    ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x05,0x02,0x38]
0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x38

# CHECK: v_pk_max_f16 v5, v1, v2 neg_lo:[0,1]    ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x05,0x02,0x58]
0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x58

# CHECK: v_pk_max_f16 v5, v1, v2 neg_lo:[1,1]    ; encoding: [0x05,0x40,0x92,0xd3,0x01,0x05,0x02,0x78]
0x05,0x00,0x92,0xd3,0x01,0x05,0x02,0x78

# CHECK: v_pk_max_f16 v5, v1, v2 neg_hi:[1,0]    ; encoding: [0x05,0x41,0x92,0xd3,0x01,0x05,0x02,0x18]
0x05,0x01,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, v1, v2 neg_hi:[0,1]    ; encoding: [0x05,0x42,0x92,0xd3,0x01,0x05,0x02,0x18]
0x05,0x02,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, v1, v2 neg_hi:[1,1]    ; encoding: [0x05,0x43,0x92,0xd3,0x01,0x05,0x02,0x18]
0x05,0x03,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_pk_max_f16 v5, v1, v2 clamp           ; encoding: [0x05,0xc0,0x92,0xd3,0x01,0x05,0x02,0x18]
0x05,0x80,0x92,0xd3,0x01,0x05,0x02,0x18

# CHECK: v_mad_mix_f32 v5, v1, v2, v3            ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v255, v1, v2, v3          ; encoding: [0xff,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0xff,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v255, v2, v3          ; encoding: [0x05,0x00,0xa0,0xd3,0xff,0x05,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0xff,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, s1, v2, v3            ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x01,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, s101, v2, v3          ; encoding: [0x05,0x00,0xa0,0xd3,0x65,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x65,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, flat_scratch_lo, v2, v3 ; encoding: [0x05,0x00,0xa0,0xd3,0x66,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x66,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, flat_scratch_hi, v2, v3 ; encoding: [0x05,0x00,0xa0,0xd3,0x67,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x67,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, vcc_lo, v2, v3        ; encoding: [0x05,0x00,0xa0,0xd3,0x6a,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x6a,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, vcc_hi, v2, v3        ; encoding: [0x05,0x00,0xa0,0xd3,0x6b,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x6b,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, m0, v2, v3            ; encoding: [0x05,0x00,0xa0,0xd3,0x7c,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x7c,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, exec_lo, v2, v3       ; encoding: [0x05,0x00,0xa0,0xd3,0x7e,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x7e,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, exec_hi, v2, v3       ; encoding: [0x05,0x00,0xa0,0xd3,0x7f,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x7f,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, 0, v2, v3             ; encoding: [0x05,0x00,0xa0,0xd3,0x80,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0x80,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, -1, v2, v3            ; encoding: [0x05,0x00,0xa0,0xd3,0xc1,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0xc1,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, 0.5, v2, v3           ; encoding: [0x05,0x00,0xa0,0xd3,0xf0,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0xf0,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, -4.0, v2, v3          ; encoding: [0x05,0x00,0xa0,0xd3,0xf7,0x04,0x0e,0x04]
0x05,0x00,0xa0,0xd3,0xf7,0x04,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, v255, v3          ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xff,0x0f,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xff,0x0f,0x04

# CHECK: v_mad_mix_f32 v5, v1, s2, v3            ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, s101, v3          ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xcb,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xcb,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, flat_scratch_lo, v3 ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xcd,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xcd,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, flat_scratch_hi, v3 ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xcf,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xcf,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, vcc_lo, v3        ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xd5,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xd5,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, vcc_hi, v3        ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xd7,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xd7,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, m0, v3            ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xf9,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xf9,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, exec_lo, v3       ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xfd,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xfd,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, exec_hi, v3       ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xff,0x0c,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xff,0x0c,0x04

# CHECK: v_mad_mix_f32 v5, v1, 0, v3             ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x01,0x0d,0x04]
0x05,0x00,0xa0,0xd3,0x01,0x01,0x0d,0x04

# CHECK: v_mad_mix_f32 v5, v1, -1, v3            ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x83,0x0d,0x04]
0x05,0x00,0xa0,0xd3,0x01,0x83,0x0d,0x04

# CHECK: v_mad_mix_f32 v5, v1, 0.5, v3           ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xe1,0x0d,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xe1,0x0d,0x04

# CHECK: v_mad_mix_f32 v5, v1, -4.0, v3          ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0xef,0x0d,0x04]
0x05,0x00,0xa0,0xd3,0x01,0xef,0x0d,0x04

# CHECK: v_mad_mix_f32 v5, v1, v2, v255          ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xfe,0x07]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xfe,0x07

# CHECK: v_mad_mix_f32 v5, v1, v2, s3            ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x00]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x00

# CHECK: v_mad_mix_f32 v5, v1, v2, s101          ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x96,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x96,0x01

# CHECK: v_mad_mix_f32 v5, v1, v2, flat_scratch_lo ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x9a,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x9a,0x01

# CHECK: v_mad_mix_f32 v5, v1, v2, flat_scratch_hi ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x9e,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x9e,0x01

# CHECK: v_mad_mix_f32 v5, v1, v2, vcc_lo        ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xaa,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xaa,0x01

# CHECK: v_mad_mix_f32 v5, v1, v2, vcc_hi        ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xae,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xae,0x01

# CHECK: v_mad_mix_f32 v5, v1, v2, m0            ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xf2,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xf2,0x01

# CHECK: v_mad_mix_f32 v5, v1, v2, exec_lo       ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xfa,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xfa,0x01

# CHECK: v_mad_mix_f32 v5, v1, v2, exec_hi       ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xfe,0x01]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xfe,0x01

# CHECK: v_mad_mix_f32 v5, v1, v2, 0             ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x02,0x02]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x02,0x02

# CHECK: v_mad_mix_f32 v5, v1, v2, -1            ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x06,0x03]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x06,0x03

# CHECK: v_mad_mix_f32 v5, v1, v2, 0.5           ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xc2,0x03]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xc2,0x03

# CHECK: v_mad_mix_f32 v5, v1, v2, -4.0          ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0xde,0x03]
0x05,0x00,0xa0,0xd3,0x01,0x05,0xde,0x03

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 op_sel:[1,0,0] ; encoding: [0x05,0x08,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x08,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 op_sel:[0,1,0] ; encoding: [0x05,0x10,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x10,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x05,0x20,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x20,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 op_sel:[1,1,1] ; encoding: [0x05,0x38,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x38,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 op_sel_hi:[1,0,0] ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x0c

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 op_sel_hi:[0,1,0] ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x14

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 op_sel_hi:[0,0,1] ; encoding: [0x05,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 op_sel_hi:[1,1,1] ; encoding: [0x05,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0xa0,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_mad_mix_f32 v5, -v1, v2, v3           ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x24]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x24

# CHECK: v_mad_mix_f32 v5, v1, -v2, v3           ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x44]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x44

# CHECK: v_mad_mix_f32 v5, v1, v2, -v3           ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x84]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0x84

# CHECK: v_mad_mix_f32 v5, -v1, -v2, -v3         ; encoding: [0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0xe4]
0x05,0x00,0xa0,0xd3,0x01,0x05,0x0e,0xe4

# CHECK: v_mad_mix_f32 v5, |v1|, v2, v3          ; encoding: [0x05,0x01,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x01,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, |v2|, v3          ; encoding: [0x05,0x02,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x02,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, v2, |v3|          ; encoding: [0x05,0x04,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x04,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, |v1|, |v2|, |v3|      ; encoding: [0x05,0x07,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x07,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mix_f32 v5, v1, v2, v3 clamp      ; encoding: [0x05,0x80,0xa0,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x80,0xa0,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3          ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v255, v1, v2, v3        ; encoding: [0xff,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0xff,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v255, v2, v3        ; encoding: [0x05,0x00,0xa1,0xd3,0xff,0x05,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0xff,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, s1, v2, v3          ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x01,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, s101, v2, v3        ; encoding: [0x05,0x00,0xa1,0xd3,0x65,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x65,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, flat_scratch_lo, v2, v3 ; encoding: [0x05,0x00,0xa1,0xd3,0x66,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x66,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, flat_scratch_hi, v2, v3 ; encoding: [0x05,0x00,0xa1,0xd3,0x67,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x67,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, vcc_lo, v2, v3      ; encoding: [0x05,0x00,0xa1,0xd3,0x6a,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x6a,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, vcc_hi, v2, v3      ; encoding: [0x05,0x00,0xa1,0xd3,0x6b,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x6b,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, m0, v2, v3          ; encoding: [0x05,0x00,0xa1,0xd3,0x7c,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x7c,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, exec_lo, v2, v3     ; encoding: [0x05,0x00,0xa1,0xd3,0x7e,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x7e,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, exec_hi, v2, v3     ; encoding: [0x05,0x00,0xa1,0xd3,0x7f,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x7f,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, 0, v2, v3           ; encoding: [0x05,0x00,0xa1,0xd3,0x80,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0x80,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, -1, v2, v3          ; encoding: [0x05,0x00,0xa1,0xd3,0xc1,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0xc1,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, 0.5, v2, v3         ; encoding: [0x05,0x00,0xa1,0xd3,0xf0,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0xf0,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, -4.0, v2, v3        ; encoding: [0x05,0x00,0xa1,0xd3,0xf7,0x04,0x0e,0x04]
0x05,0x00,0xa1,0xd3,0xf7,0x04,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v255, v3        ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xff,0x0f,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xff,0x0f,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, s2, v3          ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, s101, v3        ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xcb,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xcb,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, flat_scratch_lo, v3 ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xcd,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xcd,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, flat_scratch_hi, v3 ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xcf,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xcf,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, vcc_lo, v3      ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xd5,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xd5,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, vcc_hi, v3      ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xd7,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xd7,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, m0, v3          ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xf9,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xf9,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, exec_lo, v3     ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xfd,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xfd,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, exec_hi, v3     ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xff,0x0c,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xff,0x0c,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, 0, v3           ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x01,0x0d,0x04]
0x05,0x00,0xa1,0xd3,0x01,0x01,0x0d,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, -1, v3          ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x83,0x0d,0x04]
0x05,0x00,0xa1,0xd3,0x01,0x83,0x0d,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, 0.5, v3         ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xe1,0x0d,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xe1,0x0d,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, -4.0, v3        ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0xef,0x0d,0x04]
0x05,0x00,0xa1,0xd3,0x01,0xef,0x0d,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v255        ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xfe,0x07]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xfe,0x07

# CHECK: v_mad_mixlo_f16 v5, v1, v2, s3          ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x00]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x00

# CHECK: v_mad_mixlo_f16 v5, v1, v2, s101        ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x96,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x96,0x01

# CHECK: v_mad_mixlo_f16 v5, v1, v2, flat_scratch_lo ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x9a,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x9a,0x01

# CHECK: v_mad_mixlo_f16 v5, v1, v2, flat_scratch_hi ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x9e,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x9e,0x01

# CHECK: v_mad_mixlo_f16 v5, v1, v2, vcc_lo      ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xaa,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xaa,0x01

# CHECK: v_mad_mixlo_f16 v5, v1, v2, vcc_hi      ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xae,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xae,0x01

# CHECK: v_mad_mixlo_f16 v5, v1, v2, m0          ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xf2,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xf2,0x01

# CHECK: v_mad_mixlo_f16 v5, v1, v2, exec_lo     ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xfa,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xfa,0x01

# CHECK: v_mad_mixlo_f16 v5, v1, v2, exec_hi     ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xfe,0x01]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xfe,0x01

# CHECK: v_mad_mixlo_f16 v5, v1, v2, 0           ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x02,0x02]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x02,0x02

# CHECK: v_mad_mixlo_f16 v5, v1, v2, -1          ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x06,0x03]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x06,0x03

# CHECK: v_mad_mixlo_f16 v5, v1, v2, 0.5         ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xc2,0x03]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xc2,0x03

# CHECK: v_mad_mixlo_f16 v5, v1, v2, -4.0        ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0xde,0x03]
0x05,0x00,0xa1,0xd3,0x01,0x05,0xde,0x03

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel:[1,0,0] ; encoding: [0x05,0x08,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x08,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel:[0,1,0] ; encoding: [0x05,0x10,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x10,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x05,0x20,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x20,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel:[1,1,1] ; encoding: [0x05,0x38,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x38,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel_hi:[1,0,0] ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x0c

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel_hi:[0,1,0] ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x14

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel_hi:[0,0,1] ; encoding: [0x05,0x40,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 op_sel_hi:[1,1,1] ; encoding: [0x05,0x40,0xa1,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0xa1,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_mad_mixlo_f16 v5, -v1, v2, v3         ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x24]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x24

# CHECK: v_mad_mixlo_f16 v5, v1, -v2, v3         ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x44]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x44

# CHECK: v_mad_mixlo_f16 v5, v1, v2, -v3         ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x84]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0x84

# CHECK: v_mad_mixlo_f16 v5, -v1, -v2, -v3       ; encoding: [0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0xe4]
0x05,0x00,0xa1,0xd3,0x01,0x05,0x0e,0xe4

# CHECK: v_mad_mixlo_f16 v5, |v1|, v2, v3        ; encoding: [0x05,0x01,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x01,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, |v2|, v3        ; encoding: [0x05,0x02,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x02,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, |v3|        ; encoding: [0x05,0x04,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x04,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x07,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixlo_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xa1,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x80,0xa1,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3          ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v255, v1, v2, v3        ; encoding: [0xff,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0xff,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v255, v2, v3        ; encoding: [0x05,0x00,0xa2,0xd3,0xff,0x05,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0xff,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, s1, v2, v3          ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x01,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, s101, v2, v3        ; encoding: [0x05,0x00,0xa2,0xd3,0x65,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x65,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, flat_scratch_lo, v2, v3 ; encoding: [0x05,0x00,0xa2,0xd3,0x66,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x66,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, flat_scratch_hi, v2, v3 ; encoding: [0x05,0x00,0xa2,0xd3,0x67,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x67,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, vcc_lo, v2, v3      ; encoding: [0x05,0x00,0xa2,0xd3,0x6a,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x6a,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, vcc_hi, v2, v3      ; encoding: [0x05,0x00,0xa2,0xd3,0x6b,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x6b,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, m0, v2, v3          ; encoding: [0x05,0x00,0xa2,0xd3,0x7c,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x7c,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, exec_lo, v2, v3     ; encoding: [0x05,0x00,0xa2,0xd3,0x7e,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x7e,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, exec_hi, v2, v3     ; encoding: [0x05,0x00,0xa2,0xd3,0x7f,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x7f,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, 0, v2, v3           ; encoding: [0x05,0x00,0xa2,0xd3,0x80,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0x80,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, -1, v2, v3          ; encoding: [0x05,0x00,0xa2,0xd3,0xc1,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0xc1,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, 0.5, v2, v3         ; encoding: [0x05,0x00,0xa2,0xd3,0xf0,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0xf0,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, -4.0, v2, v3        ; encoding: [0x05,0x00,0xa2,0xd3,0xf7,0x04,0x0e,0x04]
0x05,0x00,0xa2,0xd3,0xf7,0x04,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v255, v3        ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xff,0x0f,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xff,0x0f,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, s2, v3          ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, s101, v3        ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xcb,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xcb,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, flat_scratch_lo, v3 ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xcd,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xcd,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, flat_scratch_hi, v3 ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xcf,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xcf,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, vcc_lo, v3      ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xd5,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xd5,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, vcc_hi, v3      ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xd7,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xd7,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, m0, v3          ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xf9,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xf9,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, exec_lo, v3     ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xfd,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xfd,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, exec_hi, v3     ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xff,0x0c,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xff,0x0c,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, 0, v3           ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x01,0x0d,0x04]
0x05,0x00,0xa2,0xd3,0x01,0x01,0x0d,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, -1, v3          ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x83,0x0d,0x04]
0x05,0x00,0xa2,0xd3,0x01,0x83,0x0d,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, 0.5, v3         ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xe1,0x0d,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xe1,0x0d,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, -4.0, v3        ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0xef,0x0d,0x04]
0x05,0x00,0xa2,0xd3,0x01,0xef,0x0d,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v255        ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xfe,0x07]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xfe,0x07

# CHECK: v_mad_mixhi_f16 v5, v1, v2, s3          ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x00]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x00

# CHECK: v_mad_mixhi_f16 v5, v1, v2, s101        ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x96,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x96,0x01

# CHECK: v_mad_mixhi_f16 v5, v1, v2, flat_scratch_lo ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x9a,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x9a,0x01

# CHECK: v_mad_mixhi_f16 v5, v1, v2, flat_scratch_hi ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x9e,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x9e,0x01

# CHECK: v_mad_mixhi_f16 v5, v1, v2, vcc_lo      ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xaa,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xaa,0x01

# CHECK: v_mad_mixhi_f16 v5, v1, v2, vcc_hi      ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xae,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xae,0x01

# CHECK: v_mad_mixhi_f16 v5, v1, v2, m0          ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xf2,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xf2,0x01

# CHECK: v_mad_mixhi_f16 v5, v1, v2, exec_lo     ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xfa,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xfa,0x01

# CHECK: v_mad_mixhi_f16 v5, v1, v2, exec_hi     ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xfe,0x01]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xfe,0x01

# CHECK: v_mad_mixhi_f16 v5, v1, v2, 0           ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x02,0x02]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x02,0x02

# CHECK: v_mad_mixhi_f16 v5, v1, v2, -1          ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x06,0x03]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x06,0x03

# CHECK: v_mad_mixhi_f16 v5, v1, v2, 0.5         ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xc2,0x03]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xc2,0x03

# CHECK: v_mad_mixhi_f16 v5, v1, v2, -4.0        ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0xde,0x03]
0x05,0x00,0xa2,0xd3,0x01,0x05,0xde,0x03

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel:[1,0,0] ; encoding: [0x05,0x08,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x08,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel:[0,1,0] ; encoding: [0x05,0x10,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x10,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel:[0,0,1] ; encoding: [0x05,0x20,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x20,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel:[1,1,1] ; encoding: [0x05,0x38,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x38,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel_hi:[1,0,0] ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x0c]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x0c

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel_hi:[0,1,0] ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x14]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x14

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel_hi:[0,0,1] ; encoding: [0x05,0x40,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x40,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 op_sel_hi:[1,1,1] ; encoding: [0x05,0x40,0xa2,0xd3,0x01,0x05,0x0e,0x1c]
0x05,0x40,0xa2,0xd3,0x01,0x05,0x0e,0x1c

# CHECK: v_mad_mixhi_f16 v5, -v1, v2, v3         ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x24]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x24

# CHECK: v_mad_mixhi_f16 v5, v1, -v2, v3         ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x44]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x44

# CHECK: v_mad_mixhi_f16 v5, v1, v2, -v3         ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x84]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0x84

# CHECK: v_mad_mixhi_f16 v5, -v1, -v2, -v3       ; encoding: [0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0xe4]
0x05,0x00,0xa2,0xd3,0x01,0x05,0x0e,0xe4

# CHECK: v_mad_mixhi_f16 v5, |v1|, v2, v3        ; encoding: [0x05,0x01,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x01,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, |v2|, v3        ; encoding: [0x05,0x02,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x02,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, |v3|        ; encoding: [0x05,0x04,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x04,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, |v1|, |v2|, |v3|    ; encoding: [0x05,0x07,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x07,0xa2,0xd3,0x01,0x05,0x0e,0x04

# CHECK: v_mad_mixhi_f16 v5, v1, v2, v3 clamp    ; encoding: [0x05,0x80,0xa2,0xd3,0x01,0x05,0x0e,0x04]
0x05,0x80,0xa2,0xd3,0x01,0x05,0x0e,0x04
